<template>
   <simpleDataCom :simpleData='res1' v-if='res1'></simpleDataCom>
</template>

<script>
// 引入接口
import {simpleData} from '@/api/http'
// 引入子组件
import simpleDataCom from '@/components/simpleDataCom.vue'

   export default {
     name:'',
     data () {
       return {
         res1:''
       };
     },
    // 注册
    components:{
      simpleDataCom
    },
     created(){
       simpleData().then(res=>{
         console.log(res,11111111)
          this.res1 = res.data.data
       })
     }


   }

</script>
<style scoped>

</style>